/*
 * Main.java
 *
 * Created on March 14, 2007, 5:28 PM
 *
 * Project: BusTicketVendingSystem
 * Author: Samik Saha
 * Contents: It contians the "Main" class of the project
 */

package busticketvendingsystem;

import java.awt.DisplayMode;

/**
 * This class is the main class of the project BusTicketVendingSystem.
 * Execution of the project starts from this class.
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * This is the "main" method in the "Main" class
     * @param args the command line arguments
     * Returns: nothing
     */
    public static void main(String[] args) {
        DisplayMode oldDisplayMode;
        oldDisplayMode=java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode();
        
        /* Set Look and Feel of the software */
        try {
        javax.swing.UIManager.setLookAndFeel(
            "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    	} catch (Exception e) { }
        
        /* Create a new instance of the class "UserInputForm" of package busticketvending system */
        busticketvendingsystem.UserInputForm application=new busticketvendingsystem.UserInputForm();
        
        /*Set application in full screen*/
        application.setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH);
        application.setVisible(true);
    }
    
}
